package com.core.exception;

import lombok.Data;

@Data
public class BusinessException extends RuntimeException {
    private int code = 500; // 可以自定义错误码

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(int code, String message) {
        super(message);
        this.code = code;
    }

    // getters and setters...
}